package com.kaiyiweitong.tongxing.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.kaiyiweitong.tongxing.R;
import com.zhy.view.flowlayout.FlowLayout;

import java.util.List;

/**
 * Created by Administrator on 2017/12/20 0020.
 */

public class SearchTagAdapter extends com.zhy.view.flowlayout.TagAdapter<String> {

    public SearchTagAdapter(List<String> data) {
        super(data);
    }

    @Override
    public View getView(FlowLayout parent, int position, String s) {
        TextView tv = (TextView) LayoutInflater.from(parent.getContext()).inflate(R.layout.tag_hot_search,
                null, false);
        tv.setText(s);
        return tv;
    }
}
